#ifndef __NVS_STORAGE__H__
#define __NVS_STORAGE__H__

#include <stdint.h>
#include "led_color.h"

typedef struct 
{
    uint8_t ssid[33];
    uint8_t password[65];
    uint8_t ssid_length;
    uint8_t passwd_length;
}wifi_data_t;


void nvs_storage_init(void);

esp_err_t save_wifi_data(wifi_data_t data);
esp_err_t read_wifi_data(wifi_data_t *data);
esp_err_t save_color_data(led_color_t data);
esp_err_t read_color_data(led_color_t *data);

#endif  //!__NVS_STORAGE__H__